package com.dys.spring6.service.impl;

import com.dys.spring6.bean.User;
import com.dys.spring6.dao.UserDao;
import com.dys.spring6.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 疾风
 * @ClassName: UserServiceImpl
 * @Description: User服务具体实现
 * @CreateDate: 2024/10/18
 * @Version: v1.0.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAllUser() {
        return userDao.selectAllUsers();
    }
}
